﻿@{
    ViewBag.Title = "company_orders";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <link href="~/用户中心/new.css?65" rel="stylesheet" type="text/css">
    <link href="~/用户中心/layer.css" rel="stylesheet" type="text/css">
    <link href="~/用户中心/layerModel.css" rel="stylesheet" type="text/css">
    <link href="~/用户中心/login.css" rel="stylesheet" type="text/css">
    <script src="~/用户中心/jquery-1.10.2.min.js"></script>
    <!-- Style Sheet-->
    <link rel="stylesheet" href="style.css" />
    <link rel='stylesheet' id='bootstrap-css-css' href='~/试题上传_files/bootstrap5152.css?ver=1.0' type='text/css' media='all' />
    <link rel='stylesheet' id='responsive-css-css' href='~/试题上传_files/responsive5152.css?ver=1.0' type='text/css' media='all' />
    <link rel='stylesheet' id='pretty-photo-css-css' href='~/试题上传_files/prettyPhotoaeb9.css?ver=3.1.4' type='text/css' media='all' />
    <link rel='stylesheet' id='main-css-css' href='~/试题上传_files/main5152.css?ver=1.0' type='text/css' media='all' />
    <link rel='stylesheet' id='custom-css-css' href='~/试题上传_filess/custom5152.html?ver=1.0' type='text/css' media='all' />
    <link href="~/试题上传_files/bootstrap.css" rel="stylesheet" />

    <link href="~/试题上传_files/H-ui.min.css" rel="stylesheet" type="text/css" />
    <link href="~/试题上传_files/H-ui.admin.css" rel="stylesheet" type="text/css" />
    <link href="~/试题上传_files/style.css" rel="stylesheet" type="text/css" />
    <link href="~/试题上传_files/1.0.1/iconfont.css" rel="stylesheet" type="text/css" />


    <link href="~/试题上传_files/fileinput.min.css" rel="stylesheet" />
    <script src="~/试题上传_files/jquery-1.10.2.min.js"></script>
    <script src="~/试题上传_files/bootstrap.min.js"></script>
    <script src="~/试题上传_files/js/fileinput.min.js"></script>
    <script src="~/试题上传_files/fileinput_locale_LANG.js"></script>

    <script type="text/javascript" src="~/试题上传_files/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="~/试题上传_files/layer/1.9.3/layer.js"></script>
    <script type="text/javascript" src="~/试题上传_files/datatables/1.10.0/jquery.dataTables.min.js"></script>
    <script type="text/javascript" src="~/试题上传_files/H-ui.js"></script>
    <script type="text/javascript" src="~/试题上传_files/H-ui.admin.js"></script>
    <link href="~/CSS/company_orders.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-1.8.2.min.js"></script>
    <script>
        var Size = 8;
        $(document).ready(function () {
            //我发布的面试试题
            ShowReger(1);
        })
        //显示我发布的面试试题
        function ShowReger(i) {
            $("#Show").empty();
            $("#paging").empty();
            $.ajax({
                url: "/Home/GetRegard",
                type: "get",
                data: {
                    "PageIndex": i,
                    "PageSize": Size
                },
                success: function (d) {
                    var p = jQuery.parseJSON(d);
                    var q = jQuery.parseJSON(p);
                    $(q.Data).each(function (i, obj) {
                        var div = '<div id="Title_D"><p>文章标题:<a href="/Home/company_ordersInfor/?' + obj.Articlescrap_Id + '" style="color:blue">' + obj.Articlescrap_Title + '</a> <a href="#" onclick="Del(' + obj.Articlescrap_Id + ')" style="float:right;color:blue;">删除</a></p><p><label style="float:left">发表时间：' + obj.Articlescrap_date + '</label><label style="float:right">发布人：' + obj.Login_Nickname + '</label></p><p></div>';
                        $("#Show").append(div);
                    })
                    //分页
                    var a1 = '<a href="#" onclick="ShowReger(1)" class="btn btn-primary" style="margin-left:30px;">首页</a>';
                    if (q.PageIndex - 1 > 0) {
                        var a2 = '<a href="#" onclick="ShowReger(' + (q.PageIndex - 1) + ')" class="btn btn-primary" style="margin-left:30px;">上一页</a>';
                    }
                    if (q.PageIndex < q.PageCount) {
                        var a3 = '<a href="#" onclick="ShowReger(' + (q.PageIndex + 1) + ')" class="btn btn-primary" style="margin-left:30px;">下一页</a>';
                    }
                    var a4 = '<a href="#" onclick="ShowReger(' + q.PageCount + ')" class="btn btn-primary" style="margin-left:30px;">尾页</a>';
                    $("#paging").append(a1);
                    $("#paging").append(a2);
                    $("#paging").append(a3);
                    $("#paging").append(a4);
                }
            })
        }
    </script>

</head>
<body onload="jazai()">
    <div class="header-wrapper">
        <header>
            <div class="container">
                <div class="logo-container">

                    <!-- Website Logo -->
                    <span class="tag-line" style="font-size:30px;padding-left:500px">我发布的试题</span>
                </div>
                <a href="/Home/Index" style="float:right;color:#808080;font-size:large">返回首页</a>
            </div>
        </header>
    </div>
    <div class="userbox" id="Show">

    </div>
    <div id="paging" class="table-responsive" style="text-align:center; align-content:center"></div>
    <div>
    </div>
    <div class="col-md-2">

    </div>
</body>
</html>
